/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __ANIM_DATA_DBC_H__
#define __ANIM_DATA_DBC_H__

#include "WOWDbcFile.h"

namespace PQGameCore
{
	class AnimDataDbc
	{
	public:
		static const std::string PATH;
	protected:
		AnimDataDbc();
	public:
		static AnimDataDbc& getSingleton()
		{
			static AnimDataDbc inst;
			return inst;
		}

		ChrAnimDataRecord *getRecord(int id);
		inline std::string getString(int offset)
		{
			return _dbc->getStringField(offset);
		}

	private:
		WOWDbcFile* _dbc;
	};

}

#define GNgAnimDataDbc PQGameCore::AnimDataDbc::getSingleton()

#endif
